/*
 * COPYRIGHT. ShenZhen JiMi Technology Co., Ltd. 2017.
 * ALL RIGHTS RESERVED.
 *
 * No part of this publication may be reproduced, stored in a retrieval system, or transmitted,
 * on any form or by any means, electronic, mechanical, photocopying, recording, 
 * or otherwise, without the prior written permission of ShenZhen JiMi Network Technology Co., Ltd.
 *
 * Amendment History:
 * 
 * Date                   By              Description
 * -------------------    -----------     -------------------------------------------
 * 2017年7月6日    Li.Shangzhi         Create the class
 * http://www.jimilab.com/
 */

package com.jimi.samples.pay.dao;

import java.util.List;

import org.apache.ibatis.session.RowBounds;

import com.jimi.samples.pay.model.PayTokenEntity;

/**
 * @FileName PayTokenMapper.java
 * @Description:
 *
 * @Date 2017年7月6日 上午11:31:40
 * @author Li.Shangzhi
 * @version 1.0
 */
public interface PayTokenMapper {

	int findPageCount(PayTokenEntity payTokenEntity);

	List<PayTokenEntity> findPage(PayTokenEntity payTokenEntity, RowBounds rowBounds);

	List<PayTokenEntity> findList(PayTokenEntity payTokenEntity);

	int insert(PayTokenEntity payTokenEntity);

	int update(PayTokenEntity payTokenEntity);

	int remove(String id);

	PayTokenEntity getById(String id);
	
	PayTokenEntity getNewOne(String userId);
}
